//
//  THTableViewModel.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import "THViewModel.h"
#import "MJRefresh.h"
NS_ASSUME_NONNULL_BEGIN

@interface THTableViewModel : THViewModel

/// tableView Style 列表的样式
@property (nonatomic,assign) UITableViewStyle tableViewStyle;
/// 是否支持下拉刷新
@property (nonatomic,assign) BOOL pullRefreshEnable;
/// 是否支持上拉刷新加载更多数据
@property (nonatomic,assign) BOOL infiniteReFreshEnable;

/// 请求的分页索引下标
@property (nonatomic,assign) NSInteger pageCount;
/// 分页请求的大小
@property (nonatomic,assign) NSInteger pageSize;

/// 供子类重写的刷新组件,必须设置pullRefreshEnable、infiniteReFreshEnable属性为YES
@property (nonatomic, strong) MJRefreshHeader* mj_header;

@property (nonatomic, strong) MJRefreshAutoNormalFooter* mj_footer;


///// 供子类重写的刷新组件,必须设置pullRefreshEnable、infiniteReFreshEnable属性为YES
///// mj_RefreshHeader
//- (nullable MJRefreshHeader*)mj_header;
///// mj_RefreshFooter
//- (nullable MJRefreshFooter*)mj_footer;

/// 配置tableView的位置
@property (nonatomic,assign) CGFloat insetsTop;
@property (nonatomic,assign) CGFloat insetsBottom;
@property (nonatomic,assign) CGFloat insetsLeft;
@property (nonatomic,assign) CGFloat insetsRight;
@property (nonatomic,assign) UIEdgeInsets contentInsets;


@end

NS_ASSUME_NONNULL_END
